package com.example.module_park.net

import com.example.lib_common.utils.Const
import com.example.lib_net.BaseResponse
import com.example.module_park.model.ApplicationRequest
import com.example.module_park.model.EnterpriseEntity
import com.example.module_park.model.NoticeEntityItem
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Path
import retrofit2.http.Query

interface ApiService {
    @GET(Const.NOTICE_URL)
    suspend fun noticeList(
        @Query("page") page: Int,
        @Query("size") size: Int
    ): BaseResponse<List<NoticeEntityItem>>
    @GET(Const.ENTERPRISE_URL)
    suspend fun enterpriseList(
    ): BaseResponse<List<EnterpriseEntity>>
    @GET(Const.ENTERPRISE_DETAIL_URL)
    suspend fun enterpriseDetail(
        @Path("id") id: Int
    ): BaseResponse<EnterpriseEntity>

    // 企业入驻申请接口
    @POST("/api/enterprise-profiles")
    suspend fun submitEnterpriseProfile(
        @Body request: ApplicationRequest
    ): BaseResponse<Unit>


}